#!/usr/bin/python
# -*- coding: utf-8 -*-
from flask import Flask, render_template
from duty import duty
from equip import equip
from charts import charts
from issue import issue
from database import database


app = Flask(__name__)
app.register_blueprint(blueprint=duty)
app.register_blueprint(blueprint=equip)
app.register_blueprint(blueprint=charts)
app.register_blueprint(blueprint=issue)
app.register_blueprint(blueprint=database)

@app.route('/')
###首页路由
def index():
    return render_template('index.html')

if __name__ == "__main__":
    # 运行项目
    app.run(host='0.0.0.0', debug=True)  # 整个项目的运行
